package day05.integer;

public class Lian04 {
    public static void main(String[] args) {
        String s = "1 2 3 4 5";
        String[] strarr = s.split(" ");
        int[] numarr = new int[strarr.length];
        for (int i = 0; i < strarr.length; i++) {
            numarr[i] = Integer.parseInt(strarr[i]);

        }
        for (int i = 0; i < numarr.length; i++) {
            System.out.println(numarr[i]);
        }
    }
}
